﻿using Caliburn.Micro;
using OPSYS_Schematic.UIInfrastructure;

namespace OPSYS_Schematic.Presentation.Parts
{
    [ToolBarPart(BaseToolBar = WorkbenchName.MainToolBarPart, PreviousToolBar = WorkbenchName.CutPart)]
    [MenuPart(BaseMenu = WorkbenchName.EditPart, PreviousMenu = WorkbenchName.CutPart)]
    public class CopyPart : MenuToolPart
    {
        public CopyPart()
            : base(WorkbenchName.CopyPart)
        {
            Icon = "Icons.16x16.CopyIcon";
            InputGestureText = "Ctrl+C";
        }

        public override void Execute()
        {
            var statusBar = IoC.Get<IStatusBarService>();
            statusBar.ShowMessage("Copy");
        }
    }
}